package com.eshore.norm.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author HJ
 * @date 2024/1/11 9:04
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode()
@ToString(callSuper = true)
@TableName(value = "norm_vm_volume_attach")
public class NormVmVolumeAttach {

    @TableId(value = "id")
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField(value = "volume_id")
    @ApiModelProperty(value = "硬盘id")
    private String volumeId;

    @TableField(value = "server_id")
    @ApiModelProperty(value = "虚机id")
    private String serverId;

    @TableField(value = "attached_at")
    @ApiModelProperty(value = "挂载时间")
    private String attachedAt;

    @TableField(value = "device")
    @ApiModelProperty(value = "挂载路径")
    private String device;

    @TableField(value = "host_name")
    @ApiModelProperty(value = "主机名称")
    private String hostName;

    @TableField(value = "config_id")
    @ApiModelProperty(value = "资源池id")
    private Long configId;
}
